'use strict';
const appid = "wxe8dbc4a33e4fd245"
const secret = "e95b5dfb55a6d6b08361ba99320d9ebf"
exports.main = async (event, context) => {
  //获取用户的openid
  return await uniCloud.request({
    url: `https://api.weixin.qq.com/sns/jscode2session?appid=${appid}&secret=${secret}&js_code=${event.code}&grant_type=authorization_code`,
  })
};